package com.example.Windturbine.Service;

import com.example.Windturbine.DataObject.MaterialDO;
import com.example.Windturbine.DataObject.MaterialInfoDO;
import com.example.Windturbine.Error.BusinessException;
import com.example.Windturbine.Service.Model.MaterialModel;

import java.util.List;

/**
 * @Author 丁永新
 * @Date 2021/12/15
 */
public interface MaterialService {
    //获取全部的材料信息
    List<MaterialDO> getAll(Integer level) throws BusinessException;

    //添加一条材料信息
    void submitSingle(MaterialModel materialModel) throws BusinessException;

    //获取一条材料的详细信息
    MaterialModel getDetailById(Integer id) throws BusinessException;

    void deleteById(Integer id) throws BusinessException;

    MaterialModel getDetailByName(String name,Integer level) throws BusinessException;
}
